package com.group.three.mapper;


import com.group.three.pojo.PreviewVideos;
import com.group.three.pojo.dto.AddNewPreviewVideoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xueyong
 * @since 2022-11-03
 */
@Mapper
public interface PreviewVideosMapper {

    List<PreviewVideos> selectPreviewVideosAll();
 List<PreviewVideos> selectAllPreview(@Param("isEnable")Integer isEnable);

    int deletePreviewId(Long previewId);

    List<PreviewVideos> searchByInput(String input);

    List<PreviewVideos> selectAll(int page, int size);

    //=============================添加预告片=======================

    @Transactional
    int AddNewPreviewVideo(AddNewPreviewVideoDto addNewPreviewVideoDto);

}
